home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Idling / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.4 KB  |  47 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef PART_H
  5. #define PART_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWPART_H
  10. #include "FWPart.h"            // FW_CPart
  11. #endif
  12.  
  13. //=======================================================================
  14. class FW_CPresentation;
  15. class FW_CIdler;
  16.  
  17. //=======================================================================
  18. class CIdlingPart : public FW_CPart {
  19. public:
  20.     FW_DECLARE_AUTO(CIdlingPart)
  21.                             CIdlingPart(ODPart* odPart);
  22.     virtual                 ~CIdlingPart();
  23. // new members
  24.     virtual void             MyToggleIdling(Environment* ev);
  25. // overrides
  26. protected:
  27.     virtual void             Initialize(Environment* ev,
  28.                                 ODStorageUnit* storageUnit, 
  29.                                 FW_Boolean fromStorage);
  30.     virtual FW_CContent*     NewPartContent(Environment* ev);
  31.     virtual FW_CFrame*        NewFrame(Environment* ev,
  32.                                 ODFrame* odFrame,
  33.                                 FW_CPresentation* presentation,
  34.                                 FW_Boolean fromStorage);
  35.     virtual FW_CWindow*        NewDocumentWindow(Environment* ev);
  36.     virtual FW_Handled         DoIdle(Environment* ev, 
  37.                                     const FW_CNullEvent& theNullEvent);
  38.     virtual FW_Handled        DoAbout(Environment* ev);
  39. private:
  40.     FW_CPresentation*         fPresentation;
  41.     FW_CIdler*                fIdler;
  42.     FW_Boolean                fIdlingActive;
  43. };
  44.  
  45. //=======================================================================
  46. #endif
  47.